package com.cloudoer.blog.service;

import com.cloudoer.blog.model.Article;
import com.cloudoer.blog.model.info.ArticleInfo;

import java.util.List;

public interface ArticleService {
    ArticleInfo getById(String id);

    List<ArticleInfo> getByPage (int pstart, int psize);

    List<ArticleInfo> getByPagePub (int pstart, int psize);

    List<ArticleInfo> getByRan ();

    List<ArticleInfo> getByEnd ();

    ArticleInfo add(Article article);

    int update(Article article, String tags);

    int delete(String id);

    int getCount ();

    void publish(String id);

    int getCountByPub ();
}
